const obj = {}
for (let key in obj) {
    obj[key] = obj[key].trim();
}

let arr = ["foo",]
arr.forEach(() => { })